<?php

class Page_TitleController extends Zend_Controller_Action
{

    public function init()
    {
        /* Initialize action controller here */
        $this->_helper->viewRenderer->setNoRender(true);
    }

    public function indexAction()
    {
        $label = array();
        $label = $this->view->breadcrumb['label'];
        
        // Löscht den Fenstertitel
        $this->view->headTitle()->exchangeArray(array());

        $this->view->headTitle()->prepend(array_pop($label));
        // Comes in the next version
        //$this->view->headTitle()->setSeparator(' - ');
        //$this->view->headTitle()->append('Beschreibung');
    }


}

